update pub/sub example