corrected drawing and insertSegment size