connect delay to gen, instead of output