to copy in an array