add shared mem