implementing loading of data into shared memory