added code to clean any corpus