first stab at tree traversal