change reset to revert