divide functions into tweet.c and utils.c