finalize the display formatting