                     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 myRoute : MKRoute?
    
    //create the main annotation
    var Mainannotation = MKPointAnnotation()
    var addedMainannotation = false
    
    //list of annotations by userid and the annotiation

    
    func locationManager(manager:CLLocationManager, didUpdateLocations locations:[AnyObject]) {
        
        //use the setusercords apiPoint
        Alamofire.request(.POST, apiEndpoint + "/setusercords",
            
