changed min max