fixing traversal