before adding filter