Change array values at X index