added compare_result()