shared memory problem