cleaned up a twitter method