maximum and minimum principles