removes unused generic