get_trends function working