generating report on failure