changes to query