working on query response