refactor tweet method