removing use of URL class.