adding compare_to field to figure generation