update template sample