U.S. ranks a shocking 31st in the world