typo and pubnub optmization