| Investment securities, available-for-sale |
As of June 30, 2015 and December 31, 2014, the gross unrealized losses and fair values of available-for-sale investment securities that were in unrealized loss positions were as follows: | | | | | | | | | | | | | | | | | | | | | | | | | | Less than 12 months | | 12 months or more | | Total fair value | | Total unrealized loss | | Fair value | | Unrealized loss | | Fair value | | Unrealized loss | | | | (In thousands) | June 30, 2015 | | Corporate bonds | $ | 29,312 |
| | $ | (34 | ) | | $ | — |
| | $ | — |
| | $ | 29,312 |
| | $ | (34 | ) | Commercial paper | 8,926 |
| | (3 | ) | | — |
| | — |
| | 8,926 |
| | (3 | ) | US Treasury notes | 8,191 |
| | (1 | ) | | — |
| | — |
| | 8,191 |
| | (1 | ) | Mortgage-backed securities | 64,444 |
| | (477 | ) | | — |
| | — |
| | 64,444 |
| | (477 | ) | Municipal bonds | 393 |
| | (7 | ) | | — |
| | — |
| | 393 |
| | (7 | ) | Asset-backed securities | 9,631 |
| | (4 | ) | | — |
| | — |
| | 9,631 |
| | (4 | ) | Total investment securities | $ | 120,897 |
| | $ | (526 | ) | | $ | — |
| | $ | — |
| | $ | 120,897 |
| | $ | (526 | ) | | | | | | | | | | | | | December 31, 2014 | | | | | | | | | | | | Corporate bonds | $ | 33,348 |
| | $ | (48 | ) | | $ | — |
| | $ | — |
| | $ | 33,348 |
| | $ | (48 | ) | U.S. Treasury notes | 6,068 |
| | (16 | ) | | — |
| | — |
| | 6,068 |
| | (16 | ) | Mortgage-backed securities | 21,495 |
| | (163 | ) | | 1,143 |
| | (14 | ) | | 22,638 |
| | (177 | ) | Municipal bonds | — |
| | — |
| | 419 |
| | (21 | ) | | 419 |
| | (21 | ) | Asset-backed securities | 12,254 |
| | (12 | ) | | — |
| | — |
| | 12,254 |
| | (12 | ) | Total investment securities | $ | 73,165 |
| | $ | (239 | ) | | $ | 1,562 |
| | $ | (35 | ) | | $ | 74,727 |
| | $ | (274 | ) |
Our available-for-sale investment securities were as follows: | | | | | | | | | | | | | | | | | | Amortized cost | | Gross unrealized gains | | Gross unrealized losses | | Fair value | | (In thousands) | June 30, 2015 | | Corporate bonds | $ | 36,901 |
| | $ | 2 |
| | $ | (34 | ) | | $ | 36,869 |
| Commercial paper | 36,787 |
| | 4 |
| | (3 | ) | | 36,788 |
| U.S. Treasury notes | 26,274 |
| | 11 |
| | (1 | ) | | 26,284 |
| Mortgage-backed securities | 79,711 |
| | 43 |
| | (477 | ) | | 79,277 |
| Municipal bonds | 2,129 |
| | 66 |
| | (7 | ) | | 2,188 |
| Asset-backed securities | 17,772 |
| | 5 |
| | (4 | ) | | 17,773 |
| Total investment securities | $ | 199,574 |
| | $ | 131 |
| | $ | (526 | ) | | $ | 199,179 |
| | | | | | | | | December 31, 2014 | | | | | | | | Corporate bonds | $ | 40,433 |
| | $ | 4 |
| | $ | (48 | ) | | $ | 40,389 |
| Commercial paper | 7,648 |
| | 1 |
| | — |
| | 7,649 |
| U.S. Treasury notes | 14,782 |
| | 5 |
| | (16 | ) | | 14,771 |
| Agency securities | 2,950 |
| | — |
| | — |
| | 2,950 |
| Mortgage-backed securities | 35,420 |
| | 119 |
| | (177 | ) | | 35,362 |
| Municipal bonds | 5,555 |
| | 61 |
| | (21 | ) | | 5,595 |
| Asset-backed securities | 13,727 |
| | — |
| | (12 | ) | | 13,715 |
| Total investment securities | $ | 120,515 |
| | $ | 190 |
| | $ | (274 | ) | | $ | 120,431 |
|
|
| Investments classified by contractual maturity date |
As of June 30, 2015, the contractual maturities of our available-for-sale investment securities were as follows: | | | | | | | | | | Amortized cost | | Fair value | | (In thousands) | Due in one year or less | $ | 76,751 |
| | $ | 76,746 |
| Due after one year through five years | 23,760 |
| | 23,753 |
| Due after five years through ten years | 330 |
| | 336 |
| Due after ten years | 1,250 |
| | 1,294 |
| Mortgage and asset-backed securities | 97,483 |
| | 97,050 |
| Total investment securities | $ | 199,574 |
| | $ | 199,179 |
|
|