minimal working code, uncommented