try exception handling