changed to press any key to exit