updated getAllTrending and getAllRecent