optimize error report