gain access to shared memory