restoring index