modify queries