minor update for try catch block