refactor doc.