fixed silly comparator