edited error repoting statements