Life expectancy across the globe has increased by more than six years since 1990 to 71.5 years, according to a new study.

“The progress we are seeing against a variety of illnesses and injuries is good, even remarkable, but we can and must do even better,” said lead study author Christopher Murray, a University of Washington professor, in a press release.

The study, published Wednesday in the Lancet journal, showed declines in the number of deaths from cancer and cardiovascular disease in high-income countries as well as in deaths from diarrhea and neonatal complications elsewhere. Both of these trends contributed to the overall decline. Importantly, medical funding for fighting infectious diseases has grown since 1990 and helped drive the improvement, according to Murray.

Still, despite the improvement, the number of deaths from a number of ailments increased. Perhaps most dramatically, deaths from HIV/AIDS joined the list of the top 10 causes of premature death. The number of annual deaths from the ailment rose from 2.07 million in 1990 to 2.63 million in 2013, the equivalent of a 344% increase in years of lost life. The increase in deaths from HIV/AIDS made southern sub-Saharan Africa the only region worldwide to experience a decline in life expectancy.

Other ailments that caused an increased loss of life include liver cancer caused by hepatitis C, which soared 125% since 1990, and deaths from disorders related to drug use, which increased by 63%.

Write to Justin Worland at justin.worland@time.com.