restructure the whole document