renamed formatter to prettify