reworked version of stun