Improving comparator