change get url function