finished laying groundwork for mesh traversal