removes unused exception variable