```\n        /**\n        * @dev Hook override to forbid transfers except from whitelisted \n        addresses and minting\n        */\n        function _beforeTokenTransfer(address from, address to, uint256 \n        /*amount*/) internal view override {\n                require(from == address(0) || _transferWhitelist.contains(from) \n                  || _transferWhitelist.contains(to), "transfer: not allowed");\n                 }\n```\n