relax compare_ref