adding an option to turn filtering on