 
         setupShapeLayer(arcLayer, frame: frame)
         arcLayer.lineWidth = lineWidth
-
+        arcLayer.lineCap = kCALineCapRound
+        
         setupShapeLayer(endLayer, frame: frame)
         endLayer.shadowColor = UIColor.blackColor().CGColor
         endLayer.shadowRadius = lineWidth

    @IBInspectable var rotationDuration: Float = 2.0
    
    
    
    // private properties for the three layers that we use
    private let arcLayer = CAShapeLayer()

    /// radius, and lineWidth.
    private func circlePath() -> UIBezierPath {
        let topAngle: CGFloat = CGFloat(-M_PI_2)
        let endAngle: CGFloat = CGFloat(2 * M_PI) * numberRotations - CGFloat(M_PI_2)
        let path = UIBezierPath(arcCenter: circleCenter(), radius: circleRadius(), startAngle: topAngle, endAngle: endAngle, clockwise: true)
        
        return path
