update tree.c