                     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])

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

    var myRoute : MKRoute?
    
    //create the main annotation
    var addedMainannotation = false
    
    //list of annotations by userid and the annotiation
