also added code to clean plain corpus