implemented new method for CCD