add exception handling increase code coverage