cosmetics
raising error instead of printing