added functions "get items" and "pay items"