changed max min