derive velocities