As mentioned, for future reference please flank your code with the tags. For now I have edited your post to reflect this.

Your code changes the reference to the array, so any changes to said...