save the generation