restructure the ntupleProducer