modified tweet code