diff --git a/examples/cert_checker.py b/examples/cert_checker.py
index <HASH>..<HASH> 100644
--- a/examples/cert_checker.py
+++ b/examples/cert_checker.py
@@ -47,13 +47,13 @@ if __name__ == '__main__':
 
                 # Check if the certificate subject has any spoofed domains
                 subject = row['certificate.subject']
-                domain = subject[3:] # Just chopping off the 'CN=' part
                 if any([domain in subject for domain in spoofed_domains]):
                     print('\n<<< Suspicious Certificate Found >>>')
                     pprint(row)
 
                     # Make a Virus Total query with the spoofed domain (just for fun)
-                    results = vtq.query_url(domain)
+                    query_domain = subject[3:] # Just chopping off the 'CN=' part
+                    results = vtq.query_url(query_domain)
                     if results.get('positives', 0) >= 2: # At least two hits
                         print('\n<<< Virus Total Query >>>')
                         pprint(results)
cleaning up some goofy code, thanks <URL>