redo the minimum maximum format