fixed accidental overwrite of Segment class with old version