make the current getItemsData/setItemsData private and create some new public methods