small changes to MakeMatrices