remove autogen duplicates