simplifying traversal