check the index code