refactored query_twitter_api method so it takes an argument