adding setSegment methods to SegmentInterface