change return type of url function.