writing new directive