updated to allow hepmc to include 50000 particles