added smoothing sample