document cleanup