model.comparison function