add build_paid_items function