old code revert