check on directive