add a better solution for symmetric tree -from moophis