changed clearScreen to use quicker code