attempted to fix the geturl function