improve processing and output ntuples at each analysis stage