added code for karma-4-directive-b