updates to query