added a -f for filter