setting up directive