fix comparator. format logger output