need to set max and min to null