add computation of the frame velocity