added standardization to matrix computation