divide #twitter_publish in functions