code modification of the tree