updated retweet function