refactor hashtweet to use map