         
 
         let currentLocation = locations.last
+        
         let center = CLLocationCoordinate2D(latitude: (currentLocation?.coordinate.latitude)!, longitude: (currentLocation?.coordinate.longitude)!)
         
         // map zoom in
         let region = MKCoordinateRegion(center: center, span: MKCoordinateSpanMake(0.005, 0.005))
-        
         mapView.setRegion(region, animated: true)
         
         

    
    func updateTimer(){
        
        Seconds += 1.0
        timerLabel.text = "\(timerString(Seconds))"
        
    }
    

            
            let distance = startLocation?.distanceFromLocation(lastLocation!)
            
            if startIsOn == true {
                
                traveledDistance += distance!
                
                averageSpeed = (traveledDistance/1000) / (timeInterval/(100*60*60))
                
                print ("traveledDistance: \(traveledDistance)")
            
                distanceValue.text = ("\(Int(traveledDistance)) m")
                averageSpeedValue.text = ("\(Int(averageSpeed)) km / h")
    
            } else {
                
                distanceValue.text = ("\(Int(traveledDistance)) m")
                
            }
            
            myLocations.append(currentLocation!)
            
            showRoute()

