How illnesses are stopped from spreading in nursing homes