check in the query code to be added