replace XMINT3 with ivec3