part of the exception handling done