fixed hard coded error in print_res_dict