created processTweet function