added error message to output