revise executing query