rewrite query7 without steps traversers