why do you do the try catch here if you just print the error message?`Not necessary