polished movpotential function and simplified argument inputs