changed the commit behavior and store the generator in the character