try catch in case the url fails