fixing bug in the compare list and mismatching