clean code of mstd::copy'