delete duplicate codes