added directive behaviour