working network generation.