tweak to purchase_hash