movement now works correctly