reverting back to old way of doing matrix multiplication