added functionality to processQuery