Add generation to the PreProcess2
removed old version