removed try-catch block