changes for query