moved code to Tweet class