the corpus now returns the document within a hash map
the corpus now returns the document within a hash map