adding a method as filter