change the way of generating itemId