exception handling for name done