final doc beautification