return zero on min equal