Improving and fnishing the value comparator