added code to laplacian