got generation working