             collisionBehavior.addBoundaryWithIdentifier("collision", fromPoint: CGPointMake(CGRectGetMinX(finalExpectedFrame) + offset, CGRectGetMinY(finalExpectedFrame)), toPoint: CGPointMake(CGRectGetMinX(finalExpectedFrame) + offset, CGRectGetMinX(finalExpectedFrame) + CGRectGetHeight(self.frame)))
             self.dynamicAnimator?.addBehavior(collisionBehavior)
         }
-        else
-        {
+        else {
             self.cursorView.frame = finalExpectedFrame
         }
     }

        
        var finalExpectedFrame: CGRect = CGRectMake(CGFloat(self.cursorIndex) * CGRectGetWidth(self.cursorView.frame), CGRectGetMinY(self.cursorView.frame), CGRectGetWidth(self.cursorView.frame), CGRectGetHeight(self.cursorView.frame))
        
        if (animated)
        {
            self.dynamicAnimator?.removeAllBehaviors()
            
            var offset: CGFloat = (CGRectGetMinX(finalExpectedFrame) > CGRectGetMinX(self.cursorView.frame)) ? CGRectGetWidth(self.cursorView.frame) + 1 : -1

        
        itemArray.removeAtIndex(index)
        
        updateCursorPositionAnimated(false)
    }
    
