h added as parameter of smoothing kernels