refactor doc format