added signal SegmentDone()