fixing printException