modified the query