DETROIT (AP) — General Motors is laying off about 1,000 workers worldwide, shedding costs as it tries to compete in a crowded global automobile market.

The workers are mostly salaried but some blue-collar workers were affected.

They were told of the moves early Friday.

The company confirmed the layoffs in a statement but gave few details.

GM said it has to operate efficiently and have the right team structure to focus on its top priorities.

GM and other automakers have been navigating an uncertain transition to electric vehicles worldwide, trying to figure out where to invest capital.

The company has had to update gas-powered models while investing in EV battery and assembly plants as well as minerals and other parts for the next generation of electric vehicles.