refactoring GtGenerator
refactoring GtGenerator