change min/max to minimum/maximum in API