modify share memory