min and map, generator hot fix