improved getTweets method