remove copyarray; dup is sufficient