you can put this try catch around the whole thing to make the code more readable