fixes to adding filter