fixes to the physics