add a new segment