some problem about attacker scenario algorithm