Modify tree.c