added tweeting in a loop