Better use of directive