infected / resist approach and logic update