added back smoothing