init TreeNode helper