add clean share memory