made get_new_results into a function