use new comparator in reassemble code