fixed the way the programs clear the screen