added boxcar double smoothing