add the betamatrices