measuring the velocity vector