move out the filtering of the collection