added ratio to gen