     
     //MARK: collection delegate
     
+    func collectionView(_ collectionView:UICollectionView, layout collectionViewLayout:UICollectionViewLayout, referenceSizeForHeaderInSection section:Int) -> CGSize
+    {
+        let size:CGSize
+        
+        if MStore.sharedInstance.purchase.mapItems.count > 0
+        {
+            size = CGSize(width:0, height:kHeaderSize)
+        }
+        else
+        {
+            size = CGSize.zero
+        }
+        
+        return size
+    }
+    
     func numberOfSections(in collectionView:UICollectionView) -> Int
     {
         return 1

    weak var viewSpinner:VSpinner!
    weak var collectionView:UICollectionView!
    private let kHeaderSize:CGFloat = 100
    private let kCellSize:CGFloat = 120
    private let kInterLine:CGFloat = 1
    

        self.viewSpinner = viewSpinner
        
        let flow:UICollectionViewFlowLayout = UICollectionViewFlowLayout()
        flow.footerReferenceSize = CGSize.zero
        flow.minimumLineSpacing = kInterLine
        flow.minimumInteritemSpacing = 0
