updates to query execution