exception handling

exception handling