modify try catch block