checking index