add some code for even_tree