add functon rmDupplicate