begin templating