use __min instead of min