updates for max/min