fix comparisons