added velocity and accelaration