adding segmentio