updating velocity control