adding ratio to generator