min max rules