delete repeated codes