update template to new format