corrected mediate error reporting