max and min is not necessary