simplified the main sketch file