added one more try-catch block