Change list of lists of Segment to simple lists