transfer gen to model