tracking external variables work