updating directives