added code for tweet problem. still buggy.