added chunks for deleting segments and selecting largest component