added pointer to matrix mul