removed directives from templates