rewrite #errors