working on printTree helper functions