added query to client