better logic for adding and removing filters