added notes to minmax