improved min max completed