Change the procedure of smoothing