before start to change tensor structure