revert logic