An unstable generative version

fixed the formula but still does not work