removed unused exception code