                     var newUser = user(id: userid, username: username, longitude: longitude!, latitude: latitude!, gasPercentage: gasPercentage!, batteryPercentage: batteryPercentage!)
                     
                     var marker = CLLocationCoordinate2DMake(newUser.latitude, newUser.longitude)
-                    
-                    var annotations = MKPointAnnotation()
-                    
-                    annotations.setCoordinate(marker)
-                    
-                    annotations.title = newUser.username
-                    
-                    self.myMap.addAnnotation(annotations)
-                    
-                    self.myMap.addAnnotation(annotations)
-
-                    if(self.annotations[newUser.id] == nil) {
+
+                    if(self.annotations[newUser.id] === nil) {
                         
                         self.annotations[newUser.id] = MKPointAnnotation()
                         self.myMap.addAnnotation(self.annotations[newUser.id])

    
    func locationManager(manager:CLLocationManager, didUpdateLocations locations:[AnyObject]) {
        
        //update the lat/long of the mainAnnotation (now with fancy animation)
        UIView.animateWithDuration(0.5, delay: 0.0, options: .CurveEaseInOut | .AllowUserInteraction,
            animations: {
                self.Mainannotation.coordinate.latitude = self.myMap.userLocation.coordinate.latitude
                self.Mainannotation.coordinate.longitude = self.myMap.userLocation.coordinate.longitude
            }, completion: { finished in})
        
        //if the Annotation is not of the map, add it
        if(!addedMainannotation) {
            addedMainannotation = true
            myMap.addAnnotation(Mainannotation)
            Mainannotation.title = "me"
        }
        
        //use the setusercords apiPoint
        Alamofire.request(.POST, apiEndpoint + "/setusercords",
            

    var apiEndpoint = "http://162.243.225.16:8080"
    
    //temp user id, need to add code to change this for new users
    var tempUserId = 2
    var tempGroupId = 1
    
    //simple bool for testing
