added use of Exception