methods of tree traversal 3284271