fixing tweet function