output max and min values for max principle