working TT with new data structure