declare typemap temp variables properly