added default matrix in case of no union and no representative