Change pubSub to pubsub