     // now boot the dynamic system
     func addDynamics(){
         animator =   UIDynamicAnimator(referenceView: self.view)
-    
-    //    let gravity = UIGravityBehavior(items: [imageView])
-        
-        // not needed as stated in current documentation
-        // let vector = CGVector(dx: 0.0, dy: 1.0)
-        // gravity.gravityDirection = vector
-        
-      //  animator?.addBehavior(gravity)
-
     
     }
     

       // animator?.addBehavior(itemBehaviourPreview)
        
        // make the attachment not a bit off the center to provide some rotation
        attachment2 = UIAttachmentBehavior(item: imageView2!, offsetFromCenter: UIOffsetMake(0, 20),
                                           attachedToAnchor: CGPoint(x: screenWidth + (screenWidth / 2) , y: screenHeight / 2 ))
        // create the intial attachment
        animator?.addBehavior(attachment2!)

    
    // MARK: Handling of movement when zoomed out
    func dynamicPan(_ recognizer: UIPanGestureRecognizer){
        
        
        // image transition running to the next or last image
        // do not disturb
        if(isImageTransition){
            print("image transition in process - do not disturb - ignoring events")
            return
        }
        
        
        // add the dynamic system initially
