for each array only holds a copy of the current element. It's assignment won't be reflected on the iterated array.