add method to class filter