refactor item to id