changes for new query