added maxGen