Scientists have resolved a long-standing puzzle about the human immune system