removing try-catch blocks