use functor syntax to specify filter