select a subset of items from a collection