minor bug fix and finsihed generating report