fixed bug in which the momentum was set to 1.0 in the new code