changed the type of the directives