add Laplacian smoothing to avoid zero probability