removed get_url function