removing unused directives