pretty formatting of outputs