revert properly