refactored items_sold