diff --git a/pdf.c b/pdf.c
index 6ed644c26e38d5bbfb39a652282d78a360db8385..49fc63ab2939cd1ece718486b930e8c2a6bea1f6 100644
--- a/pdf.c
+++ b/pdf.c
@@ -4909,6 +4909,7 @@ parse_xrefs(struct Env *aux)
 
 
 		/* process the root */
+		// XXX this validation likely belongs someplace else
 		if (processRoot) {
 			// Size is a required field in the trailer dictionary
 			const HParsedToken *trailer_t = H_INDEX_TOKEN(res->ast, 1);
@@ -4967,12 +4968,12 @@ parse_xrefs(struct Env *aux)
 
 
 
-	// Process the document structure
 	aux->xrefs = xrefs;
 	aux->nxrefs = n;
 
 
 
+	// XXX likely belongs somewhere else (see XXX in the loop above)
 	if (n > maxObjNum) {
 		log_message(7, "%s: Number of xrefs found -%ld- "
 				"Greater than specified /Size -%ld-.\n"
@@ -4983,6 +4984,7 @@ parse_xrefs(struct Env *aux)
 
 
 	// Process the trailer dictionary
+	// XXX content processing does not belong in this function
 	const HParsedToken *root = dictentry(trailer, "Root");
 	if(root != NULL && root->token_type == TT_Ref)
 		parse_catalog(aux, root);