exception handling is implemented