slight tweak to averaging/smoothing