smoothing algorithm applied