refactor code && remove docx