added tree length info functions