corrected function call for printTree