cleaning up the display file