added velocity and acceleration