diff --git a/pythia6m/pythia6/pythia6.h b/pythia6m/pythia6/pythia6.h
index 17b3fce32cf0fe97caefe88729b9352f55957261..5254ee9787d76dab99f97dfb562bae15ab2f5cb8 100644
--- a/pythia6m/pythia6/pythia6.h
+++ b/pythia6m/pythia6/pythia6.h
@@ -38,6 +38,14 @@ void pylist_(int* mlist);
     pylist_(&mlist_);                                                          \
   }
 
+// cleanup event info
+void pyedit_(int* medit);
+#define PYEDIT(medit)                                                          \
+  {                                                                            \
+    int medit_ = medit;                                                        \
+    pyedit_(&medit_);                                                           \
+  }
+
 #ifdef __cplusplus
 }
 #endif