cleanup of pretty printing