improvement on generators to generate a fully working generator with three subtabs