update for templates