             
             CATransaction.begin()
             CATransaction.setDisableActions(true)
-            
-
-            
-            gradientShadLayer.startPoint  = startPoint;
-            gradientShadLayer.endPoint    = endPoint;
-            gradientShadLayer.startRadius = startRadius
-            gradientShadLayer.endRadius   = endRadius
+        
+            gradientLayer.startPoint  = startPoint;
+            gradientLayer.endPoint    = endPoint;
+            gradientLayer.startRadius = startRadius
+            gradientLayer.endRadius   = endRadius
             
             CATransaction.setDisableActions(false)
             CATransaction.commit();
             
-            gradientShadLayer.setNeedsDisplay()
-        }
-    }
-    
+            gradientLayer.setNeedsDisplay()
+        }
+    }
     
     func updateGardientLocationsString() {
         

        endPointSliderValueLabel.text   = "x:\(pointEndX.value.format(true))\ny:\(pointEndY.value.format(true))"
        
        //radius text
        startRadiusSliderValueLabel.text = Float(gradientShadLayer.startRadius).format(true)
        endRadiusSliderValueLabel.text   = Float(gradientShadLayer.endRadius).format(true)
    }
    
    
    func updateGradientPoints(_ isAxial:Bool) {
        if (isAxial) {
            // axial
            pointStartX.value = 0.0
            pointStartY.value = 0.5
            pointEndX.value   = 1.0
            pointEndY.value   = 0.5
            
            
        } else {
            //radial

                                         delegate: nil)
        
        
        gradientLayer.animateKeyPath("startPoint",
                                         fromValue: nil,
                                         toValue: NSValue(cgPoint:rndStartPoint),
                                         beginTime: mediaTime ,
                                         duration: kDefaultAnimationDuration,
                                         delegate: nil)
        
        gradientLayer.animateKeyPath("endPoint",
                                         fromValue: nil,
                                         toValue: NSValue(cgPoint:rndEndPoint),
                                         beginTime: mediaTime,
