improve ntuple