add the try catch