perfect the documents