Updated Kernel Code for c_bar matrix