wrote buildcorpus