adding filter method