adding percentOfValidCases and percentOfInvalidCases