for arrays we need to have a copy of the array