writing directives