perfect the doc