before interpolation with median