removed error check on Directive type