making ntuples