According to Associated Press, General Motors will cut up to 14,000 workers in North America and put five plants up for possible closure as it abandons many of its car models and restructures to cut costs and focus more on autonomous and electric vehicles.

The reduction includes about 8,000 white-collar employees, or 15 percent of GM’s North American white-collar workforce. Some will take buyouts while others will be laid off.

At the factories, around 3,300 blue-collar workers could lose jobs in Canada and another 2,600 in the U.S., but some U.S. workers could transfer to truck or SUV factories that are increasing production.

The company also said it will stop operating two additional factories outside North America by the end of next year, in addition to a previously announced plant closure in Gunsan, Korea.