deleted unneeded code
url switch