removed dyingTokens global.