collapse try-catch