add try exception