printSegment()