updated exception usage