formatting for writing to the console