cleaning up tensor2