corrected gradient discontinuity