public function resetLayoutBlock($publishedBlocks)
    {

	    $blocksToRemove = $this->layoutBlock->filter(function(LayoutBlock $originalBlock) use($publishedBlocks){
			$toRemove = true;
	    	foreach ($publishedBlocks as $block){
	    		if(!$block->getId()){
				    $toRemove = false;
			    }

				if($block->getId() == $originalBlock->getId()){
					$toRemove = false;
				}
			}

			return $toRemove;
	    });

        foreach ($blocksToRemove as $block) {
				$block->setNoAutoDraft(true);
				$this->layoutBlock->removeElement($block);
        }

    }