main sketch under 100 lines