refine the format