fixed bug in ce_matrix creation, no longer replicate for grid size > 1
tested and working with grid >1