change value of array