Rename filter method to applyFilter