add two filter functions