update generated templates