added tensor matrix