refactor translatetweet to use map