cleaned method updateYMovement