applied template formatting