added error report statements