pubSub implemented in update agreement