commit 4: add filtering to collections