removed add_result and add_result_to_dict