modify the query