rebuild the segment