change innerproducts to massMatrices