fix for revert