corrected format of code in directives