reformatting templates