separate item id and device id