adjust instance index