contract Ownable {
    address  payable  _owner;
    address payable internal newOwner;
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor () internal {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
    }
    modifier onlyOwner {
        require(msg.sender == _owner);
        _;
    }
    function owner() public view returns (address) {
        return _owner;
    }
    function isOwner() public view returns (bool) {
        return msg.sender == _owner;
    }
    function _transferOwnership(address payable _newOwner) internal {
          newOwner = _newOwner;
    }
    //this flow is to prevent transferring ownership to wrong wallet by mistake
    function acceptOwnership() public {
        require(msg.sender == newOwner);
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
        newOwner = address(0);
    }
}
function acceptOwnership() public {
    require(msg.sender == newOwner);
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
    newOwner = address(0);
}

//this flow is to prevent transferring ownership to wrong wallet by mistake