generateor working for nodes