fixed up comparisons