updated the formatter class.