remove debugging and consolidate the URL variable