renaming Gen functions