refine output filename format