templating ugh