adding some try-catch