change tensor trace