fixed the c matrix