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

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

            
            showRoute()


        

        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)
        
        
