Replace min,max by top,bot.