changes to queries