corrected things connected to determining attack type