formating docs