error mitigation