remove doublicate codes