clean up compare_mags program