the immune system sometimes malfunctions