fix comparator
simplification du code