update try catch