The factories haven't been operating at 100% capacity. The US factory in Fremont for example is in the process of putting in a new line to produce the Model Y, demand for which should be similar to the Model 3. That alone will enable them to close to double output. Then there is the China factory that is opening in a month or two they built that in ~9 months and they are planning to break ground on a factory in Europe next year.