added copy for m3d_t