use max 100 docs to calculate header fields