fixed query bug
applied filter functions, not all