use generator to add mat2,3 and vec2,3