delete extra generic code