further changes to min/max