part 2 of array index fixing