changes to ensure correct pixelcorr