improve print in compare mode