revise the query4