updated tree length