working on query 5