updated ntuple scripts