laplacian27 now blows up when it encounters the distance function call