check index