fix compile errors by using more items instead of id