revert changes in index