added velocity assignment