remove duplicate from copy/paste