move reGenerators into R