optimizing TTTensor