modify copy of array.