formating template