start work on query