Refactor laplacian