Retirement prospects for baby boomers have improved slightly in the last year, but remain precarious for more than 40% of that generation, according to a new study.

Among early baby boomers—those born between 1948 and 1954—the percentage projected to finish retirement without running out of money has risen to 56.7 percent from 55.1 percent last year, according to the Employee Benefits Research Institute.

For late boomers—those born between 1955 and 1964—the percentage of those expected to not run out of money rose to 58.5 percent from 57.5 percent.

Among GenXers—the generation born between 1965 and 1974—the percentage of those with enough money to last in retirement went from 57.2 percent to 57.7 percent.

The improvements appear to be the result of gains in qualified retirement accounts and increases in housing values, according to EBRI.