temp comparator complete