enhance the get latest tweets function