min max functions with &REST L revised