filtering empty query