add build_buy_items function