changed the exception type