another way of doing the cypher query