reduced the query