updating shared data