adaptation for CCD sensors