How to create sub selections