max min and ideal added