add smoothing feature