refine the printTreeNode()