add remove element and duplicates