final update for template