first version of a velocity controller