modify arrayindex