initial add of compare_data code