add speed and screen clear function