changed twitter api code