rearranged stuff into math module added laplace