check index change