added alternative way to parse the corpus