typo: capacityFactor instead of numSegments