Min and Max update