working on templating