added a variable that is the loc of the shared mem seg
Revert "added a variable that is the loc of the shared mem seg"

This reverts commit 93d9499cd7ffa434a87ee6d5e33b143e184fcc3c.