maxima and minima valueFunction naming
maxima and minima valueFunction naming