add read ntuple code