cleaning up the CCD