                     let nestedHeight = 2.0
                     //floor(xOffset)
                     //floor(yValue)
-                    print("\(floor(xOffset))in right of the cell line ")
-                    print("\(floor(yValue))in right of the cell line ")
+                 //   print("\(floor(xOffset))in right of the cell line ")
+                  //  print("\(floor(yValue))in right of the cell line ")
                     self.collectionView?.performBatchUpdates({
                         self.lineView.frame = CGRect(x: xOffset, y: yValue, width: CGFloat(nestedWidth), height: CGFloat(nestedHeight))
                         self.lineView.backgroundColor = UIColor.black

            
            break
        case .ended:
            stopped = true
            endDragAtLocation(location: location)
        default:

        let sourceCell = self.collectionView?.cellForItem(at: sourceIndexPath)
        if let destinationCell = self.collectionView?.cellForItem(at: indexPath)
        {
            self.changeToIdentiPosition()
            lineView.removeFromSuperview()
            
         //   print("\(indexPath.item)source but destination\(sourceIndexPath.item)")
            if indexPath.item != sourceIndexPath.item{
                
                let topOffset = destinationCell.frame.origin.y + 20
                let leftOffset = destinationCell.frame.origin.x + 20
                let bottomOffset = destinationCell.frame.origin.y + destinationCell.frame.size.height - 10
                let rightOffset = destinationCell.frame.origin.x + destinationCell.frame.size.width - 10
                let differenceLeft = location.x - leftOffset
                
                let differenceRight = location.x - rightOffset
               // print("destination\(destinationCell.frame)")
                let differenceTop = location.y - topOffset
                let differenceBottom = location.y - bottomOffset
                if differenceLeft > -20 && differenceLeft < 0 {
                  //  print("Insert to the left of cell line")
                    lineView.removeFromSuperview()
                    let xOffset = destinationCell.frame.origin.x - 5
                     // print("\(xOffset)in left of the cell line ")
                    let yValue = destinationCell.frame.origin.y
                    //print("\(yValue)in left of the cell line ")
                    let nestedWidth = 2.0
                    let nestedHeight = destinationCell.frame.height
                    self.collectionView?.performBatchUpdates({
