revise query 1