implemented update and delete of SPSegment