getting the url method