stun logic