added printing exception