id aded and duplicte tags removed