updating CaseModel.ts