correction to totalC
merge