updating tree file