add templated