cleaning and correcting the doc