update Segment
clean up