rm smoothing