modify query.cpp