added cosmic ray cleaning