corrected data structure in comparison --KW