(Dollars in millions),"Year Ended December 31,.2021","Year Ended December 31,.2020","Year Ended December 31,.2019",2021 vs. 2020 Change.$,2021 vs. 2020 Change.%,2020 vs. 2019 Change.$,2020 vs. 2019 Change.% Cost of revenues,,,,,,, Automotive sales,,,"15,93",,,, ,"$ 32,415","$ 19,696",$ 9,"$ 12,719",65%,"$ 3,757",24% Automotive leasing,978,563,459,415,74%,104,23% Total automotive cost of revenues,,,"16,39",,,, ,"33,393","20,259",8,"13,134",65%,"3,861",24% Services and other,"3,906","2,671","2,770","1,235",46%,(99),-4% Total automotive & services and other,,,"19,16",,,, segment cost of revenues,"37,299","22,930",8,"14,369",63%,"3,762",20% Energy generation and storage segment,"2,918","1,976","1,341",942,48%,635,47% Total cost of revenues,,,"20,50",,,, ,"$ 40,217","$ 24,906",$ 9,"$ 15,311",61%,"$ 4,397",21% Gross profit total automotive,,,,,,, ,"$ 13,839","$ 6,977","$ 4,423",,,, Gross margin total automotive,29.3%,25.6%,21.2%,,,, Gross profit total automotive & services and other,,,,,,, segment,"$ 13,735","$ 6,612","$ 3,879",,,, Gross margin total automotive & services and other segment,,,,,,, ,26.9%,22.4%,16.8%,,,, Gross profit energy generation and storage segment,$ (129),$ 18,$ 190,,,, Gross margin energy generation and storage segment,-4.6%,0.9%,12.4%,,,, Total gross profit,"$ 13,606","$ 6,630","$ 4,069",,,, Total gross margin,25.3%,21.0%,16.6%,,,,