refined the formatter