only query for selected items