implemented mtcopy (not applied to classes yet)