changed gen.fail to gen.cons