updating gneration