                 reconcileScoreFromPurchase(purchasePrice: perk.price!)
                 
                 collectionView.reloadData()
+                self.collectionView.collectionViewLayout.invalidateLayout()
                 
                 print("Perk \(String(describing: newPerk!.name)) has been unlocked!")
             }

        lockAllExpiredPerks()
        
        collectionView.reloadData()
    }
    
    /******************************************************/

        
        //in app purchases have arrived so refresh the collection view
        collectionView.reloadData()
        self.collectionView.collectionViewLayout.invalidateLayout()
    }
    
    
