remove dup from array