adding functions to twitter program