refine formatting