adding conditions on collections.