try catch modification