removed duplicated elements before adding to elements