work on query response