change revert back for index