replace toda's minimal/maximal with knuth's, but maximal doesn't work...