# TransparentUpgradableProxy Inquiry

**URL:** <https://forum.openzeppelin.com/t/transparentupgradableproxy-inquiry/33932>\
**Category:** Smart Contracts\
**Tags:** proxies\
**Created:** [December 23, 2022, 8:15pm UTC](https://forum.openzeppelin.com/t/transparentupgradableproxy-inquiry/33932 "2022-12-23T20:15:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HansBhatia](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/hansbhatia/32/17295_2.png) [@HansBhatia](https://forum.openzeppelin.com/u/HansBhatia)\
**Post date:** [December 23, 2022, 8:15pm UTC](https://forum.openzeppelin.com/t/transparentupgradableproxy-inquiry/33932/1 "2022-12-23T20:15:23Z")

</div>

> <https://github.com/OpenZeppelin/openzeppelin-contracts/blob/a3b9fac30e2c5cf24c9dce2eaee18d69a69db99d/contracts/proxy/ERC1967/ERC1967Upgrade.sol#L20>

I don't understand the need for the -1 to get the slot for the implementation. Tested it out in solidity and it always returns the same value.

---

<div class="post-metadata">

**Author:** ![Skyge](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/skyge/32/343_2.png) [@Skyge](https://forum.openzeppelin.com/u/Skyge)\
**Post date:** [December 26, 2022, 8:01am UTC](https://forum.openzeppelin.com/t/transparentupgradableproxy-inquiry/33932/2 "2022-12-26T08:01:24Z")

</div>

Hi, welcome to the community! 👋

I think just in order to reduce the chances of a possible attack, cause we do not know the original data to calculate hash for this slot. And for more details, I think you can have a look at [EIP-1967: Proxy Storage Slots](https://eips.ethereum.org/EIPS/eip-1967)
