update for try catch