update tree analysis part