Adding filter method