working on directive