updating active cases to previous cases