max and mim setted