index check