remove duplicate and