define enum type TreeNode