new functions: wmax, wmin, owmax, owmin