only one reduce for Gram matrix