FIX:  fixed the layout of data in tnp3.lua