make min with compatible with coahs version