added smoothing to timeseries_kernel