changes ruby min/max methods