Revised minmaxf