apparently location redirects the browser, so I had to rename the variable