reformated tempalte files