adding kernel density estimator