Added a method for swaping the filter direction