segmentview cleanup