generateValidSegment to 999