add a function for laplace weights