```\nfunction _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {\n    uint256 length = ERC721.balanceOf(to);\n    _ownedTokens[to][length] = tokenId;\n    _ownedTokensIndex[tokenId] = length;\n}\n```\n