getting closer to spanning tree traversal