modifying initializer generator code