Note that by doing this, the index values in the array elements may now be wrong.