AbstractSegment improved