changing format document