apply filters before removing a filter