cleaning up and simplifying snr example and cc segmentation