working with directives