package comparator work