cleanup of doc