account for nil min/max