refactor and rename the Laplace method