checking index file