diff --git a/Documentation/Doxygen/Doxyfile.in b/Documentation/Doxygen/Doxyfile.in
index 2b6c5cb9df105421e060732801bec496c45be948..b733d09258adfa7e7200033acda18823a8c8ca9d 100644
--- a/Documentation/Doxygen/Doxyfile.in
+++ b/Documentation/Doxygen/Doxyfile.in
@@ -7,7 +7,7 @@ GENERATE_XML           = YES
 
 OUTPUT_DIRECTORY       = @CMAKE_CURRENT_BINARY_DIR@/
 INPUT                  = @PROJECT_SOURCE_DIR@ @PROJECT_BINARY_DIR@/Framework
-EXCLUDE_PATTERNS       = */ThirdParty/*/* */build*/*
+EXCLUDE_PATTERNS       = */ThirdParty/*/* */build*/corsika/*
 FULL_PATH_NAMES        = YES
 STRIP_FROM_PATH        = @PROJECT_SOURCE_DIR@
 
diff --git a/Framework/Particles/ParticleProperties.h b/Framework/Particles/ParticleProperties.h
index 5c76e008c59d10b239e7395793ec02b5ad8a4e60..7abcc768b5444e15414f6880c6a56aa54b288087 100644
--- a/Framework/Particles/ParticleProperties.h
+++ b/Framework/Particles/ParticleProperties.h
@@ -54,6 +54,12 @@ namespace corsika::particles {
   int constexpr GetNucleusA(Code const);
   int constexpr GetNucleusZ(Code const);
 
+} // namespace corsika::particles
+
+// here we read the implementation of all those objects and function
+#include <corsika/particles/GeneratedParticleProperties.inc>
+
+namespace corsika::particles {
 
   /*!
    * returns mass of particle in natural units
@@ -152,5 +158,3 @@ namespace corsika::particles {
   }
 
 } // namespace corsika::particles
-
-#include <corsika/particles/GeneratedParticleProperties.inc>