prevent duplicate purchase.