changes to generator