         if editingStyle == UITableViewCellEditingStyle.Delete
         {
             // remove the item from the array
-            if (self.myBurger != nil)
-            {
-                self.myBurger?.removeAtIndex(indexPath.row)
-                
-                // update the tableview
-                self.tableview.deleteRowsAtIndexPaths([indexPath], withRowAnimation: UITableViewRowAnimation.Top)
-            }
+            self.currentBurgerIngredients.removeAtIndex(indexPath.row)
+            
+            // update the tableview
+            self.tableview.deleteRowsAtIndexPaths([indexPath], withRowAnimation: UITableViewRowAnimation.Top)
+        
         }
     }
 

    var currentBurgerItem : Int = 0
    let burgerHandler = BurgerHandler.sharedHandler
    let possibleIngredients = BurgerHandler.sharedHandler.ingredientsList()
    var myBurger : [String]?
    
    override func viewDidLoad() {
        super.viewDidLoad()

        return 1;
    }
    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        
        return self.currentBurgerIngredients.count
        
    }
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("burgerIngredientCell") as UITableViewCell
        
        cell.textLabel?.text = self.currentBurgerIngredients[indexPath.row]
        
        return cell
    }
