update for a template