implemented purchase history