generator and GUI both working