Keep min and max