templatizing