correct try-catch