update pubsub example