added reading of corpus