remove references to generate