Changing values of array with a variable Variant 2