using exception variable