trying to fix the comparisons