A new understanding of herd immunity