updating velocity and directives