handle duplicated item names