invalid assertions removed
unused exception variable removed