new comparison algorithm, with both text and times