changed genCohMat a bit