added buySellAds code