added template typemap