reorganizing HWSegment class