reformat and pretty print (W.I.P)