update generated template