updated sharedmem