update to queries