Radian Group Inc. Notes to Consolidated Financial Statements - (Continued) Net premiums earned attributable to foreign countries and long-lived assets located in foreign countries were immaterial  for the periods presented.  As of December 31, 2012, California is the only state that accounted for more than  10% of our mortgage insurance  business measured by primary RIF . California accounted for  17.1% of our mortgage insurance segment’ s direct primary NIW  for the year ended December 31, 2012, compared to 15.3% and 12.8% for the years ended December 31, 2011 and 2010,  respectively. At December 31, 2012, California accounted for  12.8% of our mortgage insurance segment’ s primary RIF,  compared to 11.8% at December 31, 2011. California also accounted for  10.4% of our mortgage insurance segment’ s pool RIF  at December 31, 2012, compared to 10.5% at December 31, 2011.  The largest single mortgage insurance customer (including branches and af filiates), measured by primary NIW , accounted  for 6.2% of NIW during 2012, compared to 10.1% and 15.5% in 2011 and 2010, respectively. During 2012 and 2011, we  received premium revenue from  two of our mortgage insurance customers, each of which exceeded  10% of our consolidated  revenues.  190 December 31, 2010 (In thousands) Mortgage Insurance Financial Guaranty Financial Services Consolidated Net premiums written—insurance . . . . . . . . . . . . . . . . . . $ 699,909 $ (8,028) $ — $ 691,881 Net premiums earned—insurance . . . . . . . . . . . . . . . . . . $ 739,631 $ 86,102 $ — $ 825,733 Net investment income . . . . . . . . . . . . . . . . . . . . . . . . . . 104,030 74,730 — 178,760 Net gains on investments . . . . . . . . . . . . . . . . . . . . . . . . . 84,004 55,940 — 139,944 Net impairment losses recognized in earnings . . . . . . . . (90) — — (90) Change in fair value of derivative instruments . . . . . . . . 32,381 (591,093) — (558,712) Net losses on other financial instruments . . . . . . . . . . . . (48,137) (163,544) — (211,681) Gain on sale of affiliate . . . . . . . . . . . . . . . . . . . . . . . . . . — — 34,815 34,815 Other income . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7,208 364 1,124 8,696 Total revenues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 919,027 (537,501) 35,939 417,465 Provision for losses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1,730,801 8,443 — 1,739,244 Change in PDR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (14,621) — — (14,621) Policy acquisition costs . . . . . . . . . . . . . . . . . . . . . . . . . . 36,102 17,367 — 53,469 Other operating expenses . . . . . . . . . . . . . . . . . . . . . . . . 141,172 50,520 250 191,942 Interest expense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11,668 30,109 — 41,777 Total expenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1,905,122 106,439 250 2,011,811 Equity in net income of affiliates . . . . . . . . . . . . . . . . . . — 78 14,590 14,668 Pretax (loss) income . . . . . . . . . . . . . . . . . . . . . . . . . . . . (986,095) (643,862) 50,279 (1,579,678) Income tax provision . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157,082 51,509 17,598 226,189 Net (loss) income . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $ (1,143,177) $ (695,371) $ 32,681 $ (1,805,867) Cash and investments . . . . . . . . . . . . . . . . . . . . . . . . . . . $ 4,037,578 $ 2,643,052 $ — $ 6,680,630 Deferred policy acquisition costs . . . . . . . . . . . . . . . . . . 41,939 106,387 — 148,326 Total assets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4,801,953 2,818,934 — 7,620,887 Unearned premiums . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197,260 489,104 — 686,364 Reserve for losses and LAE . . . . . . . . . . . . . . . . . . . . . . 3,524,971 71,764 — 3,596,735 VIE debt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141,006 379,108 — 520,114 Derivative liabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . — 723,579 — 723,579 NIW (in millions) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $ 11,558