remove duplicated code on clipboard