restoring index file