revised the whole document