changed tweet function