finish format output part.