refactors creation of tweets