add try block