working on error with myVelocity being set to zero.