templating model