removes unused errors