corpus preparation