shared mem change for b