modified error smoothing