handle exact match in KS comparison