replace min/max constants with Range for pH