more cleaning of the segment class