conversion to template