             return
         }
         
-        if storedCountry != newCountry
+        if country != newCountry
         {
             removeCountryUser(
-                country:storedCountry,
+                country:country,
                 userId:userId,
                 firebase:firebase)
         }

        }
    }
    
    //MARK: internal
    
    func syncLocation(
        coreData:Database,
        latitude:Double,
        longitude:Double,
        country:String,
        completion:@escaping(() -> ()))
    {
        let firebase:FDatabase = FDatabase()
        
        removePreviousLocation(
            newCountry:country,
            firebase:firebase)
        
        addNewLocation(
            coreData:coreData,
            latitude:latitude,
            longitude:longitude,
            country:country,
            firebase:firebase,
            completion:completion)
    }
    
    func removePreviousLocation(
        newCountry:String,
        firebase:FDatabase)
    {
        guard
        
            let storedCountry:String = country,
            let userId:String = userId
        
        else

        firebase.remove(parent:country, identifier:userId)
    }
    
    //MARK: internal
    
    func syncLocation(
        coreData:Database,
        latitude:Double,
        longitude:Double,
        country:String,
        completion:@escaping(() -> ()))
    {
        let firebase:FDatabase = FDatabase()
        
        removePreviousLocation(
            newCountry:country,
            firebase:firebase)
        
        coreDataLocation(
            country:country,
            coreData:coreData)
