fix the comparison