type2typeMapping _ first working version