refactoring process_tweet