remove dulpicated codes