magnitude and velocity