changed totalLength to newGrowth