adding laplace and dirichlet smooting