min/max and types