added keyword arguments to harmonic potential