move Item merger function to Item.java